package fall2014.cs343.lab2.messagequeue;

/**
 * MessageSystem - A message system that test the producer-consumer
 *                 problem with the message queue.
 * 
 * @author Ruxin Dai
 * @version 1.0
 *
 */
public class MessageSystem {
	
	 public static void main(String[] args) {
		 
	 MessageQueue queue = new MessageQueue(5);
	 
	 new Producer(queue).start();
	 new Producer(queue).start();
	 new Producer(queue).start();
	 new Consumer(queue).start();
	 new Consumer(queue).start();
	 new Consumer(queue).start();
	 
	 }

} //end MessageSystem class
